<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" th:href="@{/css/bootstrap.css}"/>
</head>
<body>

<div style="width:800px;height:100%;margin-left:200px;">
    <form action="/user/update" method="post">
        编号：<input class="form-control" name="id" type="text" th:value="${user.id}" readonly="readonly"><br>
        姓名：<input class="form-control" type="text" th:value="${user.name}" name="name"><br>
        生日：<input  type="text"  th:value="${#dates.format(user.datetime,'yyyy-MM-dd')}" name="datetime"/><br>
        <button class="btn btn-primary btn-sm btn-block" type="submit">提交</button>
    </form>
</div>

</body>
</html>